package com.changgou.seckill.service;

import com.changgou.seckill.pojo.SeckillGoods;

import java.util.List;

/**
 * @author:hushengjin
 * @date:2019-08-12 20:49:32
 */
public interface SeckillGoodsService {

    /**
     * 获取指定时间段的秒杀商品
     *
     * @param key
     * @return
     */
    List<SeckillGoods> list(String key);

    /**
     * 根据商品ID查询商品详情
     *
     * @param time
     * @param id
     * @return
     */
    SeckillGoods one(String time, Long id);



}
